package org.example.intern.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.intern.entity.common.SysResume;
import org.example.intern.entity.common.SysRoster;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface SysRosterMapper extends BaseMapper<SysRoster> {

    @Select("SELECT * FROM roster limit #{pageNum},#{pageSize}")
    List<SysRoster> selectByPage(Integer pageNum, Integer pageSize);

    @Select("select count(*) from roster")
    Integer selectTotal();
}
